package com.handu.luna.core.domain.system;

import com.handu.luna.core.domain.BasePersistentDomain;

import javax.persistence.Entity;

/**
 * Created by wangzailiang on 2014/7/15.
 */
@Entity
public class Region extends BasePersistentDomain<RegionRepository>{

    private String name;
    private long parentId;
    private long level;

    public Region(long parentId,String name, long level) {
        this.name = name;
        this.parentId = parentId;
        this.level = level;
    }

    public Region(){}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getParentId() {
        return parentId;
    }

    public void setParentId(long parentId) {
        this.parentId = parentId;
    }

    public long getLevel() {
        return level;
    }

    public void setLevel(long level) {
        this.level = level;
    }
}
